﻿@model IList<dsacbasic.Models.LimitsViewModel>
<form action='@Url.Action("Edit")' method="post" class="editForm">
<div style="height: 40px; line-height: 40px; padding: 0 10px;">
    <div class="pull-left" style="height: 40px; line-height: 40px;">
        <h2 id="bigTitle">
            @ViewBag.Title
        </h2>
    </div>
</div>
<hr />
<div class="row" style="margin-top: 20px;">
    <ul class="rights">
        @for (int i = 0; i < Model.Count; i++)
        {
            <li>
                @Html.CheckBoxFor(x=> x[i].HasRight)
                @Html.HiddenFor(x => x[i].ID)
                @Html.Label("Name", Model[i].Name)
                </li>
        }
    </ul>
</div>
@Html.ValidationSummary()
<div class="row" style="margin-top: 20px;">
    <div class="span2 offset5">
        <input type="submit" id="Button1" class="btn  btn-primary  btn-large" value="保存" />
    </div>
</div>
</form>
